package com.yami.shop.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 快递100 API配置
 * @author AI Assistant
 */
@Configuration
@ConfigurationProperties(prefix = "express100")
@Data
public class Express100Config {

    /**
     * API密钥
     */
    private String apiKey;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * API基础URL
     */
    private String baseUrl = "https://api.kuaidi100.com";

    /**
     * 查询接口路径
     */
    private String queryPath = "/api";

    /**
     * 请求超时时间（毫秒）
     */
    private Integer timeout = 5000;

    /**
     * 重试次数
     */
    private Integer retryCount = 3;

    /**
     * 是否启用
     */
    private Boolean enabled = true;

    /**
     * 签名密钥
     */
    private String secretKey;

    /**
     * 回调URL
     */
    private String callbackUrl;
}